﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using OgilvyOne.UKNow.Globalization;
using OgilvyOne.UKNow.IDAL;
using OgilvyOne.UKNow.DAL;


namespace OgilvyOne.UKNow.DALFactory
{
    public class VotesKeyWordsDALFactory
    {
        public static readonly VotesKeyWordsIDAL ChineseEventsDAL = new VotesKeyWordsDAL(LanguageType.cn);
        public static readonly VotesKeyWordsIDAL EnglishEventsDAL = new VotesKeyWordsDAL(LanguageType.en);

        public static VotesKeyWordsIDAL Create(int langID)
        {
            if (((LanguageType)Enum.Parse(typeof(LanguageType), langID.ToString())) == LanguageType.cn)
                return ChineseEventsDAL;
            else
                return EnglishEventsDAL;
        }

    }
}
